package com.example.bookstore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.bookstore.common.Result;
import com.example.bookstore.dto.BookCategoryTreeDto;
import com.example.bookstore.entity.Cart;
import com.example.bookstore.entity.Category;

import java.util.List;
import java.util.Map;

public interface CategoryService extends IService<Category> {
     void addBigCategory();
     void addSmallCategory(Integer parentId);

     List<BookCategoryTreeDto> selectAllTreeNodes();


     Result<String> updateCategory(Category category);

     Result<String> deleteCategory(Integer id);

     List<BookCategoryTreeDto> selectCategoryChild(int id);

     List<Category> selectCategoryByParentId(Integer parentId);

     String findNameByMtAndSt(Integer mt, Integer st);

//     List<BookCategoryTreeDto> selectCategoryParent();
}
